﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NNStartHint : MonoBehaviour {
    public UILabel timeLable;

    public float timeCount = 6f;
    private void Update()
    {
        timeCount -= Time.deltaTime;

        if (timeCount > 0)
        {
            int i = (int)timeCount;
            timeLable.text = i.ToString();
        }
        else if (timeCount < 0)
        {
            Destroy(gameObject);
        }
    }
}
